package com.suneee.trades.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name = "t_syn_log")
public class SynLog implements Serializable {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "log_id", nullable = false)
	private Integer logId;

	@Column(name = "shop_id")
	private Integer shopId;

	@Column(name = "enterprise_code")
	private String enterpriseCode;

	@Column(name = "op_type")
	private String opType;

	@Column(name = "data_type")
	private String dataType;

	@Column(name = "num")
	private Integer num;

	@Column(name = "is_success")
	private Boolean isSuccess;

	@Column(name = "create_time")
	private Timestamp createTime;

	@Column(name = "create_user")
	private String createUser;

	@Transient
	private String returnInfo;
	@Transient
	private Date synStartTime;
	@Transient
	private Date synEndTime;
	@Transient
	private String shopName;

	public Integer getLogId() {
		return logId;
	}

	public void setLogId(Integer logId) {
		this.logId = logId;
	}

	public Integer getShopId() {
		return shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	public String getOpType() {
		return opType;
	}

	public void setOpType(String opType) {
		this.opType = opType;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Boolean getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getReturnInfo() {
		return returnInfo;
	}

	public void setReturnInfo(String returnInfo) {
		this.returnInfo = returnInfo;
	}

	public Date getSynStartTime() {
		return synStartTime;
	}

	public void setSynStartTime(Date synStartTime) {
		this.synStartTime = synStartTime;
	}

	public Date getSynEndTime() {
		return synEndTime;
	}

	public void setSynEndTime(Date synEndTime) {
		this.synEndTime = synEndTime;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
}